#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr1[] = {1,2,3,4};
	int arr2[] = { 2,3,4,5 };
	int i = 0;
	int k = 0;
	int t = 0;
	for (i = 0; i < 4; i++, k++)
	{
		t = arr1[i];
		arr1[i] = arr2[k];
		arr2[k] = t;
	}
	for (i = 0; i < 4; i++)
	{
		printf("%d ", arr1[i]);

	}
	printf("\n");
	for (i = 0; i < 4; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}